PARSER=parser
SSVR=search_server
cc=g++
CXXFLAGS=-std=c++11 -Wno-deprecated-declarations
LDFLAGS=-lboost_system -lboost_filesystem -ljsoncpp  # 添加 jsoncpp 库

.PHONY:all
all: $(PARSER) $(SSVR)

$(PARSER): parser.cc
	$(cc) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)

$(SSVR): server.cc
	$(cc) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)

.PHONY:clean
clean:
	rm -f $(PARSER) $(SSVR)